"""A simple GUI for temperture control."""

# Import PySimpleGUI, you may need to install first:
#   pip install pysimplegui
import PySimpleGUI as sg

# Window Layout
# It is easy to setup a window layout,
# just consider these as a table in row and columns,
# by which you will presee the results.
layout = [
    [sg.Text("Status: "), sg.Text("16"), sg.Button("OFF")],
    [sg.Text("Expect Temperture: "), sg.InputText()],
    [sg.Text("Environment Temperture: "), sg.Text("20.0")],
    [sg.Button("Quit"), sg.Button("SetTemp")]
]

# sg.Window(window_title, layout)
window = sg.Window("Temp Control", layout)

while True:
    event, values = window.read()
    if event == sg.WIN_CLOSED or event == "Quit":
        break

window.close()
